package com.shop.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.entity.dto.AdminOrders.AdminOrdersListDto;
import com.shop.entity.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    boolean addCart(@Param("orders") Orders orders);

    Page<Orders> getOrderByPage(@Param("page") Page<Orders> page, @Param("dto") AdminOrdersListDto dto);

    Orders getOne(@Param("id") Long ordersId);

    boolean updateIsDelete(@Param("orders") Orders orders);
}




